package cn.jbit.stream.ioutils;

import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Files与Path工具类
 */
public class TestFiles {

    @Test
    public  void  test() throws IOException {

        Path path = Paths.get("D:\\tengxun\\tenMeeting\\WeMeet\\2.19.5.412");

        //使用Files工具类操作文件
        byte[] bytes = Files.readAllBytes(path);

        System.out.println(bytes.length);

    }


}
